<?php
#####################################################
# RWCARDS - Joomla E-Cards Componment!
# Copyright (C) 2004/2005 by Ralf Weber
# Company    : LoadBrain
# Homepage   : www.weberr.de
# Version    : 2.1.0
# Date       : 23/11/2005
# License    : Released under GPL
######################################################

// ensure this file is being included by a parent file
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

require_once( $mainframe->getPath( 'toolbar_html' ) );

if ( !defined('_RWCARDS_LANG_INCLUDED') ) 
{
  	if ( file_exists($mosConfig_absolute_path . "/components/com_rwcards/language/" . $mosConfig_lang . ".php") )
	{
    	include_once($mosConfig_absolute_path . "/components/com_rwcards/language/" . $mosConfig_lang . ".php");
  	}
	else 
	{
    	include_once($mosConfig_absolute_path . "/components/com_rwcards/language/english.php");
	}
}
switch ( $task ) 
{
	case "new_card":
	case "edit_card":
		menurwcards::CARD_SAVE_MENU();
		break;

	case "categories":
		menurwcards::CATEGORY_MENU();
		break;

	case "new_category":
	case "edit_category":
		menurwcards::CATEGORY_SAVE_MENU();
		break;

	case "about":
	case "upload":
		menurwcards::ABOUT_MENU();
		break;

  	case "config":
    	menurwcards::CONFIG_MENU();
    	break;

  	case "sentcards":
    	menurwcards::SENTCARDS_MENU();
    	break;

  	case "cards":
    	menurwcards::CARDS_MENU();
    	break;
	
	default:
		menurwcards::DEFAULT_MENU();
		break;
}
?>